package com.ourcraft.informationcollectionsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName("City")
public class City {
    @TableId(type = IdType.AUTO)
    private Integer cityId;
    private Integer userId;
    private String cityName;

    public City(Integer userId, String cityName) {
        this.userId = userId;
        this.cityName = cityName;
    }
}
